-- GENERATED SPELL FOR [Scarlet Curate] --


function spell0_9450(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(17201,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9450', 581, 1)
end

function spell1_9450(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(25054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9450', 2500, 1)
end

function spell2_9450(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(25058,pUnit)
pUnit:RegisterEvent('Sorts_9450', 15000, 1)
end

function Sorts_9450(pUnit, Event)
local choix_sorts_9450 = math.random(0, 2)
if choix_sorts_9450 == 0 then
pUnit:RegisterEvent('spell0_9450', 1, 1)
end
if choix_sorts_9450 == 1 then
pUnit:RegisterEvent('spell1_9450', 1, 1)
end
if choix_sorts_9450 == 2 then
pUnit:RegisterEvent('spell2_9450', 1, 1)
end
end

function mob9450_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9450', math.random(1500, 3000), 1)
end

function mob9450_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9450_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9450_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9450, 1, 'mob9450_Action')
RegisterUnitEvent(9450, 2, 'mob9450_Leave')
RegisterUnitEvent(9450, 3, 'mob9450_Kill')
RegisterUnitEvent(9450, 4, 'mob9450_Die')
